import { get, post } from '@/http/request'

// 获取用户列表
export const fetchUserList = (params: { page: number; pageSize: number }) => {
  return get<{ list: any[]; total: number }>('/api/users', params)
}

// 生成模版代码
export const jsonToVue3Code = (jsonStr: string) => {
  return post('/grt/vue3code', {
    json: jsonStr,
  })
}

// 测试deepseek
export const askDeepseek = (desc: string) => {
  return post('/ai/grtJson', {
    desc,
  })
}
